Skip to content

zeroize: add proxy_alloc_test#1199

Merged
newpavlov merged 2 commits into
masterfrom
zeroize/proxy_alloc_test
Aug 6, 2025
Merged

zeroize: add proxy_alloc_test#1199
newpavlov merged 2 commits into
masterfrom
zeroize/proxy_alloc_test

Conversation

@newpavlov

Copy link
Copy Markdown
Member

The added test checks that zeroization happens using a custom global allocator. Replacing self.0.as_mut().zeroize() with self.0 = Default::default() results in test failure as expected. The test also passes Miri without issues.

@newpavlov newpavlov merged commit 0e7e6e6 into master Aug 6, 2025
24 checks passed
@newpavlov newpavlov deleted the zeroize/proxy_alloc_test branch August 6, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants